broadway: Only use gio-unix on G_OS_UNIX
authorTarnyko <tarnyko@tarnyko.net>
Thu, 13 Jun 2013 16:15:10 +0000 (18:15 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 13 Jun 2013 16:15:10 +0000 (18:15 +0200)
configure.ac
gdk/broadway/broadwayd.c
gdk/broadway/gdkbroadway-server.c

index b06182b40800bcf29dc69ec4726feceafd4e2157..8885944ed508218b133ff91106a823261023d1d4 100644 (file)
@@ -382,7 +382,9 @@ AC_SUBST(DISABLE_ON_QUARTZ)
 if test "x$enable_broadway_backend" = xyes; then
   GDK_BACKENDS="$GDK_BACKENDS broadway"
   cairo_backends="$cairo_backends cairo"
-  have_gio_unix=yes
+  if test "$os_unix" = "yes"; then
+    have_gio_unix=yes
+  fi
   GDK_WINDOWING="$GDK_WINDOWING
 #define GDK_WINDOWING_BROADWAY"
   GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lz"
index e3995c2344f3106851b4ea53ce1f8bf9d39b68c4..cd6a8889ae169acd0c44b0d59713d25c4d785b37 100644 (file)
@@ -10,7 +10,9 @@
 
 #include <glib.h>
 #include <gio/gio.h>
+#ifdef G_OS_UNIX
 #include <gio/gunixsocketaddress.h>
+#endif
 
 #include "broadway-server.h"
 
index 058f8782e1bc881eac99271621cede0d69a44bc2..92d4e60f73e0427ac3d101e246306cb732dd08f3 100644 (file)
@@ -12,7 +12,9 @@
 
 #include <glib.h>
 #include <glib/gprintf.h>
+#ifdef G_OS_UNIX
 #include <gio/gunixsocketaddress.h>
+#endif
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>